package com.demo;

import com.demo.interfaces.ICoupon;

public class PerHundredMinusTenCoupon implements ICoupon {
    @Override
    public int fullReduction(int total) {
        int calculatedResult = 0;
        if(total > 100){
            int num = total%100;
            int minusResult =  10*num;
            calculatedResult = total - minusResult;
        }else{
            calculatedResult = total;
        }

        return calculatedResult;
    }
}
